<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/>
</template>

<script setup>
import HelloWorld from "@/components/HelloWorld.vue"
import {ref,onMounted} from "vue"
import axios from 'axios'
const list=ref([])
onMounted(()=>{
  axios.get("http://localhost:8510/api/cms/banner").then((response)=>{
    const result=response.data
    list.value=result.data
    console.log(list.value)
  }).catch((error)=>{
    alert(error.message)
  })
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
